<?php
declare(strict_types=1);
namespace App\Model;

class Phone extends Model
{
    protected $table = 'phone';
    protected $primaryKey = 'id';
    const CREATED_AT = 'created_at';
    const UPDATED_AT = 'updated_at';
    /**
     * 不能被批量赋值的属性
     * 为空 - 也就是都可以批量复制
     * @var array
     */
    protected $guarded = [];

    /**
     * The attributes that should be cast.
     *
     * @var array
     */
    protected $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
    ];
}
